package org.luxor.commons.workflow.entity;

import javax.validation.constraints.NotBlank;

/**
 * 多实例任务减签
 *
 * @author Mr.yan  @date 2021/10/19
 */
public class DeleteMultiInstanceExecution {

    /**
     * 任务ID
     */
    @NotBlank(message = "任务ID(taskId)，不能为空")
    private String taskId;

    /**
     * 操作原因
     */
    private String reason;

    /**
     * 完成执行实例？
     */
    private boolean executionIsCompleted;

    public DeleteMultiInstanceExecution() {
        this.executionIsCompleted = true;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public boolean getExecutionIsCompleted() {
        return executionIsCompleted;
    }

    public void setExecutionIsCompleted(boolean executionIsCompleted) {
        this.executionIsCompleted = executionIsCompleted;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @Override
    public String toString() {
        return "DeleteMultiInstanceExecution{" +
                "taskId='" + taskId + '\'' +
                ", executionIsCompleted=" + executionIsCompleted + '\'' +
                ", reason='" + reason + '\'' +
                '}';
    }
}
